package com.lqq.designPattern.bulider_pattern.builder.builder;

//指挥者类，指挥建造者建造自行车
public class Director {
    private Builder builder;

    public Director(Builder builder) {
        this.builder = builder;
    }

    //指挥建造者构建和组装自行车
    public Bike construct() {
        builder.buildFrame();
        builder.buildSeat();
        return builder.createBike();
    }
}
